﻿mainModule.factory("baseEvents", function () {
    "use strict";
    return function (entityNameParam) {
        var entityName = "item";
        if (typeof (entityNameParam) !== "undefined")
            entityName = entityNameParam;
        
        return {
            editingEvent : entityName + 'Editing',
            addingEvent : entityName + 'Adding',
            editedEvent : entityName + "Edited",
            addedEvent: entityName + "Added",
            searchingEvent: entityName + "Searching",
            removingEvent: entityName + "Removing",
        }                 
    };
});